.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border: none;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* 改变盒窗口计算方式，以便与select元素的宽度保持一致 */
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus {
    border-color: #4CAF50;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.form-group select {
    appearance: none;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    background-color: #fff;
    cursor: pointer;
}

.button-group {
    text-align: right;
}

.button-group button {
    margin-left: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#save-settings {
    background-color: #4CAF50;
    color: white;
}

#save-settings:hover {
    background-color: #45a049;
}

#cancel-settings {
    background-color: #f1f1f1;
    color: black;
}

#cancel-settings:hover {
    background-color: #ddd;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    border-radius: 50%;
    width: 16px; /* 修改为与 height 相同的值 */
    height: 16px;
    animation: spin 1s linear infinite;
    display: none;  /* 默认隐藏 */
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result-message {
    display: block;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: left;
    transition: background-color 0.3s ease;
}

.result-message.success {
    background-color: #d4edda;
    color: green;
    border: 1px solid #c3e6cb;
}

.result-message.error {
    background-color: #f8d7da;
    color: black;
    border: 1px solid #f5c6cb;
}